package com.itheima.wms.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.datasource.WmsMybatisPlusCache;
import com.itheima.wms.entity.IncreaseDecreaseEntity;
import com.itheima.wms.vo.IncreaseDecreaseDetailVO;
import com.itheima.wms.vo.IncreaseDecreaseSumVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * 损益单
 * </p>
 */
@Repository
@CacheNamespace(implementation = WmsMybatisPlusCache.class, eviction = WmsMybatisPlusCache.class)
public interface IncreaseDecreaseMapper extends BaseMapper<IncreaseDecreaseEntity> {

    IPage<IncreaseDecreaseDetailVO> selectIncreaseDecreaseDetail(Page<IncreaseDecreaseDetailVO> page, @Param("params") Map data);

    List<IncreaseDecreaseDetailVO> selectIncreaseDecreaseDetail(@Param("params") Map data);

    IncreaseDecreaseSumVO sumIncreaseDecrease(@Param("params") Map data);
}
